03. How APIs Work

How APIs Work Heading

How APIs Work

FSND C2 L1 A03 How APIs Work

Client-Server Communication

When you got to a bank, the bank teller acts as an intermediary or interface between you and the bank vault. And this is the same type of relationship we see in client-server communication: The user or client makes a request to the API server, which parses the requests, queries the database, formats a response and then sends it back.

Here is the process listed out:

  1. Client sends a request to the API server
  2. The API server parses that request
  3. Assuming the request is formatted correctly, the server queries the database for the information or performs the action in the request
  4. The server formats the response and sends it back to the client
  5. The client renders the response according to its implementation

What are APIs Quiz 1

What does API stand for?

SOLUTION: Application Programming Interface

What are APIs Quiz 2

What are some of the benefits an API provides?

SOLUTION:
  • Defines standardized methods of accessing application data
  • Doesn’t expose application implementation